// samsting : this file is auto create.

#include "Slb/2013-02-21/SetLoadBalancerTCPListenerAttributeRequest.h"

namespace aliyun { namespace Slb {

SetLoadBalancerTCPListenerAttributeRequest::SetLoadBalancerTCPListenerAttributeRequest() : RpcAcsRequest("Slb", "2013-02-21", "SetLoadBalancerTCPListenerAttribute") {
}

const string& SetLoadBalancerTCPListenerAttributeRequest::GetLoadBalancerId(void) const {
  return LoadBalancerId_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetLoadBalancerId(const string& LoadBalancerId) {
  LoadBalancerId_ = LoadBalancerId;
  PutQueryParameter("LoadBalancerId", LoadBalancerId_);
}

int SetLoadBalancerTCPListenerAttributeRequest::GetListenerPort(void) const {
  return ListenerPort_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetListenerPort(int ListenerPort) {
  ListenerPort_ = ListenerPort;
  PutQueryParameter("ListenerPort", string_ValueOfInt(ListenerPort_));
}

const string& SetLoadBalancerTCPListenerAttributeRequest::GetScheduler(void) const {
  return Scheduler_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetScheduler(const string& Scheduler) {
  Scheduler_ = Scheduler;
  PutQueryParameter("Scheduler", Scheduler_);
}

int SetLoadBalancerTCPListenerAttributeRequest::GetPersistenceTimeout(void) const {
  return PersistenceTimeout_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetPersistenceTimeout(int PersistenceTimeout) {
  PersistenceTimeout_ = PersistenceTimeout;
  PutQueryParameter("PersistenceTimeout", string_ValueOfInt(PersistenceTimeout_));
}

const string& SetLoadBalancerTCPListenerAttributeRequest::GetHealthCheck(void) const {
  return HealthCheck_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetHealthCheck(const string& HealthCheck) {
  HealthCheck_ = HealthCheck;
  PutQueryParameter("HealthCheck", HealthCheck_);
}

int SetLoadBalancerTCPListenerAttributeRequest::GetHealthyThreshold(void) const {
  return HealthyThreshold_;
}
bool SetLoadBalancerTCPListenerAttributeRequest::SetHealthyThreshold(int HealthyThreshold) {
  if(HealthyThreshold < 1) {
    return false;
  }
  if(HealthyThreshold > 10) {
    return false;
  }
  HealthyThreshold_ = HealthyThreshold;
  PutQueryParameter("HealthyThreshold", string_ValueOfInt(HealthyThreshold_));
  return true;
}

int SetLoadBalancerTCPListenerAttributeRequest::GetUnhealthyThreshold(void) const {
  return UnhealthyThreshold_;
}
bool SetLoadBalancerTCPListenerAttributeRequest::SetUnhealthyThreshold(int UnhealthyThreshold) {
  if(UnhealthyThreshold < 1) {
    return false;
  }
  if(UnhealthyThreshold > 10) {
    return false;
  }
  UnhealthyThreshold_ = UnhealthyThreshold;
  PutQueryParameter("UnhealthyThreshold", string_ValueOfInt(UnhealthyThreshold_));
  return true;
}

int SetLoadBalancerTCPListenerAttributeRequest::GetConnectTimeout(void) const {
  return ConnectTimeout_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetConnectTimeout(int ConnectTimeout) {
  ConnectTimeout_ = ConnectTimeout;
  PutQueryParameter("ConnectTimeout", string_ValueOfInt(ConnectTimeout_));
}

int SetLoadBalancerTCPListenerAttributeRequest::GetConnectPort(void) const {
  return ConnectPort_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetConnectPort(int ConnectPort) {
  ConnectPort_ = ConnectPort;
  PutQueryParameter("ConnectPort", string_ValueOfInt(ConnectPort_));
}

int SetLoadBalancerTCPListenerAttributeRequest::GetInterval(void) const {
  return Interval_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetInterval(int Interval) {
  Interval_ = Interval;
  PutQueryParameter("Interval", string_ValueOfInt(Interval_));
}

const string& SetLoadBalancerTCPListenerAttributeRequest::GetHostId(void) const {
  return HostId_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetHostId(const string& HostId) {
  HostId_ = HostId;
  PutQueryParameter("HostId", HostId_);
}

const string& SetLoadBalancerTCPListenerAttributeRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void SetLoadBalancerTCPListenerAttributeRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}


} } // namespace aliyun { namespace Slb {

// end of file 
